reverse engineering
noun
°The process of analyzing the construction and operation of a product in order to manufacture a similar one.